#pragma once
#include "sdkconfig.h"

#define CONFIG_FORMAT_MJPEG_CAM1 1

#ifdef CONFIG_FORMAT_MJPEG_CAM1
#define FORMAT_MJPEG_CAM1     1
#endif

#ifdef CONFIG_UVC_CAM1_MULTI_FRAMESIZE
//If enable, add VGA and HVGA to list
#define UVC_CAM1_FRAME_MULTI     1
#endif

#define UVC_CAM1_FRAME_WIDTH     320//CONFIG_UVC_CAM1_FRAMESIZE_WIDTH
#define UVC_CAM1_FRAME_HEIGHT    240//CONFIG_UVC_CAM1_FRAMESIZE_HEIGT
#define UVC_CAM1_FRAME_RATE      15//CONFIG_UVC_CAM1_FRAMERATE

#ifdef CONFIG_UVC_MODE_BULK_CAM1
#define UVC_CAM1_BULK_MODE
#endif

static const struct {
    int width;
    int height;
    int rate;
} UVC_FRAMES_INFO[][4] = {{
        {UVC_CAM1_FRAME_WIDTH, UVC_CAM1_FRAME_HEIGHT, UVC_CAM1_FRAME_RATE},
        {240, 240, 15},
        {240, 176, 15},
        {160, 120, 15},
    }
};

#define UVC_FRAME_NUM (sizeof(UVC_FRAMES_INFO[0]) / sizeof(UVC_FRAMES_INFO[0][0]))
_Static_assert(UVC_FRAME_NUM == 4, "UVC_FRAME_NUM must be 4");
